package com.hnluchuan.staff.enums;

/**
 * 规章制度 状态，1-未上架，2-已上架，3-已下架
 */
public enum RulesStatus {
    // 请根据实际情况改成对应的值和备注
	Status1(1, "状态1"),
	Status2(2, "状态2");
    
    private int value;
    private String remark;
    
    private RulesStatus(int value, String remark) {
    	this.value = value;
    	this.remark = remark;
    }
    
    public int getValue() {
    	return value;
    }
    public String getRemark() {
    	return remark;
    }
    
    public static RulesStatus getByValue(int value) {
    	for (RulesStatus o : RulesStatus.values()) {
    		if (o.getValue() == value) {
    			return o;
    		}
    	}
    	return null;
    }
}
